package cloudPayAdmin.admin.service.hicatcard.user;

import java.util.List;

import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cloudPayAdmin.admin.dbapp.entity.hicatcard.user.TUserCardRechargeNewUser;
import cloudPayAdmin.admin.dbapp.repo.hicatcard.user.UserCardRechargeNewUserRepo;

@Component
@Transactional
public class UserCardRechargeNewUserService {
	
	@Autowired
	UserCardRechargeNewUserRepo  userCardRechargeNewUserRepo;
	
	public void save(List<TUserCardRechargeNewUser> list) {
		if(CollectionUtils.isNotEmpty(list)) {
			userCardRechargeNewUserRepo.save(list);
		}	
	}
}
